package com.common.broadcastRecever;

import android.app.Activity;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;

import com.common.widget.toast.ToastManager;

/**
 * Created by Administrator on 2016/8/24.
 */
public class CloseActivityBroadcastReceiver extends BroadcastReceiver {
    private Activity activity;

    public CloseActivityBroadcastReceiver(Activity activity){
        this.activity=activity;
    }

    @Override
    public void onReceive(Context context, Intent intent) {
//        activity.finish();
        ToastManager.showLongToast("收到信息了");
    }
}
